package org.jeecg.modules.bobo.wechat.common.api.interfaces;

import com.github.binarywang.wxpay.bean.entpay.EntPayResult;
import com.github.binarywang.wxpay.bean.order.WxPayMpOrderResult;
import com.github.binarywang.wxpay.bean.result.WxPayRefundResult;
import org.jeecg.modules.bobo.common.util.Result;
import org.jeecg.modules.bobo.wechat.common.entity.IWxPayApiEntity;

import javax.servlet.http.HttpServletRequest;

/**
 * @program: jeecg-boot-parent
 * @description: 支付公共api
 * @author: 三千霜
 * @create: 2020-04-23 17:05
 */

public interface IWxPayApi<T extends IWxPayApiEntity> {

    Result<WxPayMpOrderResult>  payOrder(T t);

    Result<WxPayRefundResult> refundOrder(T t);

    Result<EntPayResult> entPay(T t, HttpServletRequest request);

    String payNotify(String xmlData);

    String notifyRefund(String xmlData);

}
